package com.lupan.tomcatStudy.mongodb.districtToBounds;

import com.mongodb.BasicDBObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

/**
 * 说明：
 *
 * @author lupan
 * @version 2016/4/28 11:18
 */
@Repository
public class ConvertRepository {
    @Autowired(required = false)
    private MongoTemplate mongoTemplate;

    public void save(BasicDBObject basicDBObject, String places) {
        mongoTemplate.save(basicDBObject, "places");
    }
}
